//
//  AnalyzeTask.swift
//  RssFly
//
//  Created by shen on 2023/10/17.
//

import CoreData

struct AnalyzeTask {
    unowned let profileObjectID: NSManagedObjectID

    func execute() async {
        await PersistenceController.shared.container.performBackgroundTask { context in
            TrendAnalysis.run(context: context, profileObjectID: profileObjectID)
        }
    }
}
